<script type="text/javascript">
  function show() {
      alert("test");
      document.title = "changed";
  }
</script>
<button id="b" onclick="show()">show alert</button>
